<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>.: cPanel - <%=LG::NEWS%> :.</title>
	<?php $this->import()?>
	<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
	<script type="text/javascript">
		$(function() {
			$("#title").focus();
		});
	</script>
</head>
<body>
	<?php $this->header()?><br/>
		<table width="100%"><tr>
			<td align="left"><a href="?c=news&a=cgrid"><%=LG::NEWSCATS%></a> > <%=LG::G_NEW%></td>
		</tr></table>
		<hr/>
		<center><form action="" method="post">
			<b class="error"><%=$msg%></b>
			<table class="grid" cellspacing="1" cellpadding="5" width="100%">
				<tr>
					<td align="left">
						<%=LG::G_TITLE%>:<br/>
						<input id="title" name="title" maxlength="200" value="<%=$title%>"/>
					</td>
				</tr>
				<tr>
					<td align="left">
						<%=LG::NEWS_HEADER%>:<br/>
						<textarea id="header" name="header" rows="10" cols="80"><%=$header%></textarea>
					</td>
				</tr>
				<tr>
					<td align="left">
						<%=LG::NEWS_BODY%>:<br/>
						<textarea name="body" rows="" cols=""><%=$body%></textarea>
					</td>
				</tr>
				<tr>
					<td align="left">
						<%=LG::NEWS_AUTHOR%>:<br/>
						<input name="author" maxlength="100" value="<%=$author%>"/>
					</td>
				</tr>
			</table>
			<hr/>
			<input type="submit" value="<%=LG::F_SAVE%>"/>
		</form></center>
		<br/>
	<?php $this->footer()?>
	<script type="text/javascript">
	CKEDITOR.replace('header');
	CKEDITOR.replace( 'body', {
		fullPage: true,
		allowedContent: true,
		extraPlugins: 'wysiwygarea'
	});
	</script>
</body>
</html>